/*
 * Copyright 2010 Michael Nitsche
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package de.mnit.basis.db.sql;

import java.sql.Connection;

import de.mnit.basis.daten.struktur.liste.S_Liste;
import de.mnit.basis.daten.struktur.tabelle.S_Tabelle;

/**
 * @author Michael Nitsche
 * 30.03.2010	Read-Only-Schnittstelle entfernt
 *
 */
public interface S_SqlDB {

	void befehl(String s);
	void schliessen();
	void autoCommit(boolean b);
	void commit();
	void rollback();
	Connection connection();

	// LESEN

	S_Tabelle<String> gib(String s);
	S_Liste<String> gibZeile(String s);
	S_Liste<String> gibSpalte(String s);
	S_Liste<Integer> gibSpalteInt(String s);
	double gibDouble(String s);
	boolean gibBool(String s);
	float gibFloat(String s);
	int gibInt(String s);
	long gibLong(String s);
	String gibString(String s);
	boolean istLeer(String s);
	Integer gibWInteger(String s);

}